package com.zufe.Test1;

public class Round extends Shape{
    private double radius;
    private final double pi = Math.PI;

    public Round() {
    }

    public Round(double radius) {
        this.radius = radius;
    }

    public double getRadius() {
        return radius;
    }

    public void setRadius(double radius) {
        this.radius = radius;
    }

    public double getPi() {
        return pi;
    }

    @Override
    public double getPerimeter() {
        return this.pi * 2 * (int) this.radius;
    }

    @Override
    public double getArea() {
        return (this.pi * this.radius * this.radius);
    }
}
